import { RadioButton } from '@/components';
import { memo } from 'react';

type Props = {
   value: string;
   onChange: (value: string) => void;
};
const AccountMode = memo((props: Props) => {
   return (
      <div className="w-full flex items-start justify-between mt-1">
         <span className="text-sm">金额模式</span>
         <div>
            <RadioButton
               value={props.value}
               onChange={props.onChange}
               options={[
                  { value: 'average', label: '均分' },
                  { value: 'separated', label: '自定义' },
               ]}
            />
         </div>
      </div>
   );
});
export default AccountMode;
